On OSX, one of the XQuartz header files triggers a compiler warning about using a gcc extension, resulting in a diagnostic for each of the files compiled with the WANT_WIN_X11 set of CFLAGS. Use the same fix as hints/macosx10.8 already does.