[Patch] Add configure --enable-valgrind option to run all tests under valgrind.