Add support for running unit tests under Valgrind.