This patch fixes a couple of issues:
- Instead of using llvm_unreachable for those base virtual functions, unknown value will be returned. The previous method could cause runtime error for those targets where the image is not compatible but JIT is not implemented.
- Fixed the type in CMake that causes the Target CMake variable is undefined.