Revert "add o3 flags for build"

This reverts commit 50fccfe487f84c415f8ebfa25a1abd2c25ceb1e9.