Add a couple more things to the socket portability layer