Fix build errors on (Ubuntu-based) Linux Mint
I got build errors on Linux Mint (which is Ubuntu-based). The pkg-config --libs
stuff needs to go at the end of the line for the linker commands to make it work. I currently cannot check if this breaks stuff for the windows build, but I'm rather sure it should be okay.