Do not use readdir_r() with glibc >= 2.24
Do not use readdir_r() with glibc >= 2.24

Starting from glibc 2.24 readdir_r() was deprecated in favour of readdir().

saprykin/plibsys,saprykin/plibsys,saprykin/plib,saprykin/plibsys,saprykin/plib