compile C std changed from c99 to gnu99; MinGW32 compatibility