Workaround emscripten exception issues.
Fix test runner to propely compute timings per iteration.
Refactor how tests + code coverage is enabled in CMakeLists.txt to be able to run optimized non-code-coveraged builds on MinGW.