Fixed warnings on Windows

Target version of Windows API should be defined before including `windows.h`