Added value(gcc) CC to Makefile(without exported CC compilation fails. Beautified Makefile.
Fixed compile warnings, little code optimization.