configure: fix disabling of (x)mga without swscale internals