Fix pthread_create for NetBSD case