Supress the deprecation warnings by including an __APPLE__ only preamble.

I'm open to suggestions on a better place to put the preamble.

This brings us down to 31 warnings down from 425.

Related to #295