Add build support for Haiku and perhaps BeOS; needs testing