Make clang static analyzer happy.

Had to fix some hand rolled Mac OS X file handling pulled in from
ImageVis3D.