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