cross platform threading fixing - throw in cpp.hpp loosey goosey