Add support for LWP-based threads on FreeBSD.