Quark mass effects in B -> Xs gamma