Tell cmake about valgrind's memcheck.h
More smarts for script/valgrind
Don't bother checking is_base_ptr unnecessarily.