Fix warnings on GCC on Windows. Also, free of charge optimization: -mtune=generic for the Windows builds.