resolves permissions error on windows during linking, by manually creating the temporary subdirectory