Changed the settings for release build so that it works.