getting things to build in release mode without the need to turn off optimizations