Mac build fixes. now ptexViewer can run on Mac (lion or later)