Implementation of pthreads for vita