Add missing reference and use NSFont instead of UIFont when building for mac

UIFont doesn't exist on the mac. Use NSFont instead.