fix windows dll build problems