more minor c++ification
minor changes
use std::get_time on windows... which has it and in gcc > 4.10 which will allegedly have it
make sure _GNU_SOURCE is defined for strptime