Fix compilation with newer glibc (on Ubuntu 13.04)

Include the right headers for getrlimit()/setrlimit().
Fix failing utimes() tests on some file systems

If the file system doesn't support sub-second precision time-stamps, the
utimes() tests would file.  Adjust them so that accept either exact milli-
second time-stamps, or whole-second time-stamps.