AppKit: made it compile for X11 - but does run outside Xcode only

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>