glscale: Check for extensions on startup.

We need the NPOT and framebuffer extensions or the GL scaling can't
work. Check for these and fall back to software mode if they aren't
present.