Cowboy related fixes

There seem to be breaking changes in Cowboy dependency