Included <limits> to fix compile error I was encountering on Debian 6.0.6