Code to make a release build work