add makefile.am for applib