all changes to make mcopy work in node-webkit

Everything