Compatibility fixes for Mojolicious 4.23