Upstream accidently broke cross-compilation. It has been fixed but not released yet, so we temporarily add the patch here.