Windows does not define "WIN32"; it should should be "_WIN32". Because "WIN32" isn't known, the preprocessor will ignore the "#include <osgViewer/api/Win32/GraphicsHandleWin32>" directive and use the "#include <osgViewer/api/X11/GraphicsHandleX11>" directive instead.