Fix NO_NAN include handling in scalar sign