Reduce optimization to avoid problems with old C++ compilers