Add support for valgrind