Added optimized flags for  build.