Correctly link in cmake