OSX: Initialize the application.