VS2012 compile bugfix

Needed changes to make VS2012 compile phantomjs