fix threadname stuff for posix