Added missing permission flags to Windows build #333