hmm. why are you pulling in x11-related bits when the code for it is ifdeffed out?