list_methods Makefile.am: target list_method only if we build write libraries