Build fix for gcc 4.7.2

Add typename to std::iterator_traits<It>::iterator_category constructor.