Use app's name for WM_CLASS

Fixes #840.