Adding some C++11 stuff to createIndex, but I can't compile it here because our compiler is so old or something that it can't even build a new compiler.