optimizations

-O3 and -Ofast should never be used