Added #include <limits> to files that were missing it.
Merge pull request #869 from bpmckinnon:master