Fix unsigned/signed comparison warnings
Use difftime to do time_t math
This avoid any assumptions of what the underlying time_t type is.
Merge pull request #59 from alok0/fix01

Fix unsigned/signed comparison warnings