ofGst: Fix compilation with GStreamer 0.10

I'm guessing GStreamer 1.0 is used these days, but I still have 0.10 on
a slightly old Fedora.
Merge pull request #3480 from dlespiau/20141213-gst-0.10-build-fix

ofGst: Fix compilation with GStreamer 0.10