Fix build process for desktop apps