Add commands to build WAM2, LSM and Valgrind