Here are a few M12 x 0.5mm, wide angle lenses with relatively short minimum object distances, see http://www.azurephotonics.com/products/CCD%20Mini%20Lenses/Board%20Lens.html.
Robert Eastlund
Graftek Imaging, Inc.
Phone: (512) 416-1099 x101
Email: eastlund@graftek.com