Fix limits.h includes

These were missing in several places. Fixes #50.