fix the build in PhantomJS
give more build output on errors