patch for cross compile