Generate .dll libraries on windows

https://bugzilla.gnome.org/show_bug.cgi?id=734288