build conditions to check if UIKit or AppKit is included