Include limits.h in miscellaneous.h.

Might fix BSD issues.