GCC on windows configuration

* fixed configuration for using gcc on windows
* fixed comparison between signed and unsigned integer expressions warnings