fix makefile.am
fix makefile
fix build script
fix the shell permission