Automake-ify plugin build process (takes care of out-of-tree builds, too)