Expect the global object to be window

Hack for node-webkit.