Samsung, Google to avoid an Apple: Sign deal to cross-license patents