Fix: building with pthread on Haiku OS.