Fix compilation on non-MinGW environments

Please review ;-)
Thanks.