Add valgrind and check installation to travis

Get travis to install valgrind and check before running the build.