Replaced ios:: with std::ios:: for g++-3.0 compatability.