Turn on -O2 when compiling for a release