Update build files after plain_mechanism split

This became necessary after 22d6a9740
Update build files to include metadata

This became necessary after b9c274814