Linker flags for Windows

The library didn't used to link on Windows (mingw-w64), I added some platform specific linker flags so it does.