Enable some compiler optimizations on release builds.