Fix to support linux time in long

Apparently on linux mtime returns as a long. This way it's compatible
with both linux and windows.