Fixed build script to build phantomjs