Tests: if we are on linux/BSD and there's no X running, try Xvfb automatically.

also workaround some Gallium bugs and Imagemagick bugs and also fail if MCAD is not installed