Tweaks to work in node-webkit.