Add libxm2 dependency; Fix compilation on Mac OS 10.9

First commit adds libxml2 dependency
Second commit backports patch necessary to compile gstreamer on Mac OS 10.9