Fixed compatibility problems with Mojolicious 4.0 and perl 5.18