Add basic valgrind support