Added actual support for building and using shared libraries on windows