Update deps to cowboy 0.6.1, fix compile errors

This will compile against cowboy 0.6.1. See extend/cowboy_fcgi#1