add access() function to take a role of posix access() in Windows.