Added #include <limits> to fix build errors on linux.