Adds optimize settings to the build-script