Added patches for cross-compiler