fix external app build