configure: Add basic valgrind-massif support