remove useless libs, fix compile error