generalmath:compat: use boost::filesystem streams instead of std:: streams