Impact of heavy quark masses on parton distributions and LHC phenomenology