[Issue 10420] Add support for building on Haiku