Provide timer related functions compatible with GLIBC 2.2 and >= 2.3.3 [pr32 @8615959]