scan: qualify isnan to prevent name collision in libstdc++