-O2 build optimizations