Several fixes to bring back compatibility with latest Mojolicious

All tests now passes for me