add boost date_time to some places where it was needed
some windows fixes
fix warnings