lib: Change poll_funcs to take direct timevals