Add pragmas to work around bad optimizations by GCC 4.4.6