Fixes some build related stuff for releasing