#34 Use proper optimization flag depending on build mode