Fix compiling on Haiku r1beta5