fix link error on linux