Fix build on haiku