Check for isnan() and isinf() by linking