base: Allow building when not using X11 on a FBDEV based system

* Currently building base will fail on non X11 based systems due to
  inclusion of X11 headers and some calls to X11 functions.
* Portions of the code currently attempts to avoid calling X11 functions
  when fbdev is used. This patch adds additional checks to avoid X11 calls.

Signed-off-by: Franklin S Cooper Jr <fcooper27@gmail.com>
Merge pull request #239 from fcooper/master-no-x11

base: Allow building when not using X11 on a FBDEV based system