The error domain and codes must present in a publicly installed header otherwise they won't be usable to match a GError.