WIP: Fake timers

TODO testing
Don't fake timers on __APPLE__
Provide timer related functions compatible with GLIBC 2.2 and >= 2.3.3