cmake: do not link with dl in case of *SAN