use -O3, compile fix for Mac