Fixed issues causing Mac app not to start, added logger to track issues in compiled version