Fixed typo in makefile and some errors in the installation.