stop using Gestalt on OS X

This function has been deprecated for a while and is not even part of
the latest SDK, so it's time to say goodbye.