limits.h rather than sys/param.h
sort includes much more sensibly
sys/types.h rather than sys/param.h, where applicable.  avoid overreach.