(#3229) fixes for nodewebkit

Fixes for nodewebkit, which I can only justify through hand-waving, because I can't actually get our tests to run with nodewebkit.