- don't use FD_SETSIZE on select - "sin" conflicts with math library, so use sin6 - other minor updates