Add some missing libraries for mingw.
Similar functionality already exist on the cmake side.