fix some warnings in the makefile and added a time_t test