more error reporting & fixed typo in Makefile