Build fixes for MinGW.

threads.h: use windows.h headers for clock stuff on MinGW
strategyselector.c: assert with strlen for MinGW support
Fixed time output formatting.