Handle LIBDISCID_API for mingw and cygwin

Also move config.h include to the top of disc.c so that the functions are built
are marked as dllexport while building the library.
Use winver.h instead of Winver.h