Remove useless libraries and desktop adapter reference