use -std=gnu99 on windows

This seems like it was the only change needed to  compile on windows.