Detecting XPM on non-X11 Platforms