Replace Gestalt() because it's deprecated on OS X 10.9

Read SystemVersion.plist to determine OS version.