Fix compile error with missing time.h

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>