Fix error when compile with -ansi -pedantic flags