Adjust makefile to example
Update thread implementation
Start to implement tests for c++ thread wrapper

API is similar to the std::thread interfaces.