include time.h in cpp
Merge pull request #124 from da2ce7/time_null_fix

include time.h in cpp