Turns of certain optimizations that crash the release build.
Gets rid of some outdated build settings.