Fixes to ResearchAssistantJ to run under Mac