fix SERVER_* for unix sockets when possible

Normally only the application should use the Host header but since the WSGI
spec doesn't support unix sockets, we are using it to create viable
SERVER_* if possible so the application and framworks will be happy.