add the LIBRARY header in the .def file, but for mingw only, msvc doesn't support...