Make it possible to build ObjFW without support for threads.