Fixed build errors due to Makefile build flags (vs. CMake build flags). Removed dynamic_cast from CodeGen_GPU_Host.cpp.