Check for X11 headers before compiling SDL