Fix gcc49

Versions of the GNU Compiler Collection (GCC) greater than or equal to GCC 4.9.0 include changes to code optimization that have been reported to cause problems in when default code optimization settings are used by the compiler.