Updated for emscripten/box2d