Add m4 dir for libtool.Modify main.h/main.c logic error