add valgrind support