configure: Simplify and fix avfoundation indev handling