port to c++11 thread classes
port various parts away from CoreLibrary to c++11