Dealt with some g++ 4.8, c++11 compilation issues
Fixed some gcc 4.8 issues in C++11 mode with index_pair and index_triple