PvAPI support on Windows with MinGW (see Patch #2083)

Add a define to avoid unresolved externals when compiling with MinGW