Fixed makefile and installation scripts.