Replace semicolons with && so that the Makefile will stop if anything fails
Remove obsolete reference to libSM