Bugfix: add missing libraries.

For some reason, the Linux does not complain when ctime and cstdlib are
not included in the project. Windows, on the other hand, does.