Remove second '-lrt' on linker calls to fix 32-bit building issue
Fake __clock_gettime() and similar calls using  __... calls

This breaks potential infinite loops.
Finish safe faking of internal calls
Enable faking internal calls on OS X

Tested on OS X 10.8 with the test suite
Drop unused code
Add nanosecond resolution to file stat functions

Based on Ray Donnelly's idea in ddf7f4ab35002f6eb04094b98127bd8f445512e5
Ensure late calls return correct results

.. the cache expiration would reset to using +0 as
the faketime ignoring the FAKETIME env var.
Define config file parsing related variables in smaller scopes
Do not use -ldl -lm when linking the wrapper
Fix -lrt issues in Makefile
Fix tests on libc 2.17
Fall back to default timer_settime() & timer_gettime() if no versioned version is present
Define CLOCK_MONOTONIC_RAW where it is not present

This fixes compilation on Debian GNU/kFreeBSD
Use SIGUSR1 instead of SIGRTMIN in tests

This will probably fix compilation on Debian GNU/Hurd