Fix C++11 usage

- replace all the auto keyword by the proper type
kept the auto line in todo for reference :)

- silent a few warnings