fixed the compile problem in Solaris 11

fixed the different Makefile install format
fixed the different structure packed grammar
Merge pull request #182 from yaoweibin/fix_solairs

fixed the compile problem in Solaris 11