Improve AppKit availability checks