fix cmake link libraries rule