Added package for installation
Fixed error with pthread
fixed directory for make clean
fixed %d warnings and makefile works