Add @capi_x patch to fix Haiku's build