heimdal build fixes

Seems like heimdal needs X11 to build. I dont know how my previous commit got through my testings. But this commit i tested well on many devices with diffrent OSX.

Added dependency and option to disable X11.