fixed c99 bug for gcc/cygwin