Moved S_ISLNK and S_ISSOCK tests from index.c to private.h