Fix Haiku build errors (C89)