Update dxr-index.cpp for trunk clang

scope printing still needs some work, I suspect. The other things
seemed to be straightforward enough to change.

Also renamed makefile to Makefile and added a check-syntax rule for
flymake.