use c++11 tread and mutex in pnAsyncCore
remove offsetof warning and remove OS-specific sources not needed for the current OS in CMakeList.txt