Fix Haiku (GCC 2.95, C89) build