fixes through enet-1.3.7 and changes for latest emscripten
compiled with latest emscripten