Updates for build as app on macos