Planar lenses in the mid-infrared