Add include <cstring> to be able to compile on linux.
Add include <iomanip> to be able to compile on linux.
Fixes for gcc and linux. Use strftime instead of put_time. Initialize structure variables.
Format code.