Replace usages of limits.h with the compatibility header

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>