Patch to fix cross-compiling