Another cmake fix for MinGW.