fix pre-C99 compile error