Add a library to link to work on mingw build
Fix header for mingw