Fix build on Haiku