Added :: before all uses of namespace std for disambiguation.