Changed build script to build libraries for release only