20140116 backport use first as default, protection for gluon code
Merge pull request #2144 from fabiocos/53XPdfWeight

53X back-port of Pdf Weight modifications