Fallback to desktop res if required.

This matches the OpenTK X11 backend's behaviour (though should be a bit more
robust), and fixes a bug with some backends.