Add pkg-config in Makefile

Also, improve my code and make the process of compiling warnning less!!