use lstat(2) to check if it's a symlink
tests for File.socket? and File.symlink?
Merge branch 'master' into win32