Set WM_CLASS on windows

SourceForge bug ID 3187736

Also run through perltidy