compile work and remove useless libs