Fix library references and translation scripts on MacOS.
Handle the MacOS application layout when finding resources.