json-c: override some configure tests for cross builds.