Add simple c++ wrapper for pthread threads