Update deps to cowboy 0.6.1, fix compile errors

This will compile against cowboy 0.6.1. See extend/cowboy_fcgi#1
Merge pull request #2 from unix1/master

Update deps to cowboy 0.6.1, fix compile errors