git-ignore plat.sh (built at configure time)
Find Valgrind more portably at configure time

Looks for the binary in $PATH and the header file using pkg-config.
Print an error message when execv(valgrind) fails
Fix unused variable warning.