fix compile error
fix link error