It does this correctly in all files but one, and fails on FreeBSD. Patch to follow
Created attachment 103868 [details, diff] Include limits.h Although cut for 0.15.0, it applies to the current 0.14.1 in portage
Upstream bug http://bugs.gentoo.org/show_bug.cgi?id=157924
Upstream bug: http://bugzilla.gnome.org/show_bug.cgi?id=387171
Fixed in stable 0.14.1 on the premise that the code path that it's patched to is identical to the one in multiple other source files (the include order). Thanks!