Add simple wrapper around pthread library.