contrib/schema: update generator to rewrite imports

This should build our vendored copy, right?