fix building and signing on windows