Add bind() polyfill, required by PhantomJS (ref #597)