Fix permissions for Windows