Fix c compilation to use c99 standard