Setting WM_CLASS under X11

Most X11 programs set the WM_CLASS hint based on the name of the binary
run, but SDL always seems to set it to SDL_App-- this is troublesome
with some window managers that use this hint to identify individual
programs-- Is there any reason behind the current behavior? If there
isn’t, I’d strongly recommend acquiring the executable name and using
that for the class.