add hacked llrint implementation to fix emscripten bug temporarily -- will be reverted later