add missing limits.h include, should fix #1235