This fixes cross compiling where build system != host system. https://bugzilla.gnome.org/show_bug.cgi?id=699690