Compile with -O3 in release mode only