Added helper function as workaround for VC++ bug in std::future::wait_for.
Fix for non-MSVC builds.
Updated Sleep functions.
Fixes for GCC compiler errors and style fixes.
Removed unneeded GCC pragmas.
Removed use of CMake function 'label_as_critical_tests'.
License update, to allow greater developer freedom.