Fixed building for Haiku

Fixed building for Haiku (for hrev46454 on x86_gcc2, at least).