Fix HalideProf to build with tricky C++ env. Add rule to Makefile to build it.