haiku: Fix build on Haiku; drop pthread