build flag optimizations