Fixes for Cowboy 0.8.2