compile with optimizations turned on