move SDL_SavePNG to the SDL compilation group, on cmake also

This ports over this commit for scons:
ff857d1d2b6dc97e886774115499847c2256804b