Use C++11 features: auto for iterators:

This implies that we need a C++11 capable compiler to build HIPAcc, but reduces
code complexity significantly.