(#3229) - just the fixes for nodewebkit

Same as https://github.com/pouchdb/pouchdb/pull/3233, but just what's necessary to get the tests to pass 100% in nodewebkit, not trying to actually test them in an automated way.