Fix d_namlen bug in Linux.