I am using CMake to compile a dll containing mixed C and Fortran code. I am using MinGW compilers to compile the dll, then using the GNUtoMS feature in CMake to make the dll com