fixed the compile problem in Solaris 11

fixed the different Makefile install format
fixed the different structure packed grammar