libtime.h: support inclusion in C++ projects

Signed-off-by: Steven Noonan <steven@uplinklabs.net>