fix cld() and cdll() on linux