resource: fix for Windows 7