Some fixes to support gstreamer 1.0