Fix DragonFlyBSD POSIX Thread support.