Fixed some problems with the build stuff for release.