Addes support for building shared libraries on windows