Add valgrind support