Move the lstat() declaration to <sys/stat.h>.