pthreads: added stubs for kill and cancel