CS MinGW patches