include <limits.h> for LONG_MIN/LONG_MAX.

Also remove <sys/filio.h> added from previous commit.
This was the wrong way to get FIONBIO.

ok jsing@