Fix build on haiku

As it says on the tin: For GCI task https://google-melange.appspot.com/gci/task/view/google/gci2013/6362387384893440 and Haikuports recipe https://bitbucket.org/puckipedia/haikuports/pull-request/1/add-beindexed-recipe/diff.