These making porting stuff easier. I could not find a way to tell CMake that the system does not have threads library