Changes to support "bindless" phantomJS