mingw: Fix compilation issues

- use lowercase windows.h
- fix for mingw32 using preprocessor-unfriendly definition of CLOCKS_PER_SEC (note mingw-w64 does not have that problem)