define feature check macros to support OS X headers