fix possible compiling issues (after failing at emscripten)