Revise build process

-minimize build dependencies
-revise makefile dependencies
-support install