Fix link error on linux