Added LLVM_BUILD_MODE to cmake so that lit supports tests with REQUIRES: {buildmode}.