Makefile update & warning fix 

The Makefile is really mess up, need more work.
Source code still exist some compile warnings.