I've moved the meshfix port I made for mac from its buried location inside libigl to its own github repo.
If you're commonly dealing with bad meshes (self-intersections, non-manifold bits, holes, etc.). This is a great fully automatic tool. I often use it before sending meshes to tetgen. It works particularly for single component meshes with lots of little problems.