remove use of std::stringstream in __APLE__