Changes to maintain compatibility with latest updates in Cowboy