Various fixes to the openh264 plugin

It works properly on input from other encoders now, fixes lots of crashes here and there and in general uses the GStreamer API better and more efficiently.

Also depends on my build fixes branch.