Cowboy 1.0.1 compatibility HACKs