Fix for building on emscripten