Bug 973649 - Add logic for CFLAGS, CXXFLAGS and LDFLAGS to moz.build; r=gps

--HG--
extra : amend_source : d44541fd844c1b3f5fb4077add7aa0589ae61942