first commit, containing a few basic code modules for thread and mutex abstractions