Modernize and make this work with current packages.
Bump to v12.