src: Makefile.am: remove libs which are not needed from linking