Fixes for building with PSL1GHT
Don't assume sizeof(sockaddr) works when connect()ing sockaddr_in