Fix bug in building files for utest
Implement pthead_kill() and sigmask stuff for pthreads