Fallback time.monotonic implementation using ctypes for Linux/OS X