Posix compatible thread creation