fix compile
fix link