fix compile error, adjust dependency