use -std=gnu99 on windows, ensure __WIN32__ is defined