Updated release settings, added macro code

Now a release build can be done.