make it compile with -ansi