Replace c++11 usage of auto by explicit declaration