fix undefined constants

kept getting errors that SOL_SOCKET, SO_TYPE were not defined.