minor fixes to support node-webkit 0.11.0