use lstat64 instead of lstat