remove references to std::ios_base for stdlib compatibility
provide cmake variable containing host OS X version