Fixed warnings building with gcc 2 and gcc 4 on Haiku