Made modifications for latex2dnd to run on Mac