fix ups for running as mac app.