Patch for cross-compiling
Auto-detect v4l2 i/o method