fixes for C++ target
Merge remote-tracking branch 'origin/wip-delite-develop' into wip-delite-develop

Conflicts:
	src/common/MiscOps.scala
	src/internal/CudaCodegen.scala
	src/internal/OpenCLCodegen.scala