The newest versions of MinGW gcc will automatically link to .LIB files created by MSVC in most cases. The .lib file we distribute works for us with MinGW 3.4.5.
To compile with MinGW:
gcc PKI_Examples.c diCrPKi.lib -o PKI_Examples