Fix const-correctness to compile on LLVM 3.0