Gstreamer 0.10 fixes

I found a couple of errors with gstreamer0.10 and liboil while trying to build a bundle of frogr in OS X 10.9.3 with support for video uploads based on GStreamer 0.10.

Without these patches, I could not get gstreamer building (would not find g_log_domain_gstreamer identifier) nor liboil to configure (using obsolete AM_CONFIG_HEADER macro) or build (unexpected cast in amd64/wavelet.c)

Hope this pull request will be helpful :)