Gestalt has been deprecated as of OS X 10.8

Runtime version check using NSAppKitVersionNumber global variable