Upgrade to build with Java 21.
