add typedefs to socket.h to improve POSIX compliance
Merge pull request #76 from benpicco/posix_compat

add typedefs to socket.h to improve POSIX compatibility