fix prepublish; fix exports considering node-webkits situation of having both: window and module.exports