Remove useless libraries and update