added Valgrind support