Replace ctype code with xrandr call

For some reason the ctype code crashes with newer version of
X11. As a (bad) workaround xrandr is called and parsed.
Fix detection of backend failure.
Fix gstreamer plugin for gstreamer 1.0

Kaa.candy now has two gstreamer plugins. One for 0.10 (clutter-gst-1)
and one for 1.0 (clutter-gst-2). The later is unfinished.