Fix several Makefile.am to support a builddir different than srcdir