fix compile lib
fix makefile, fix params