eliminated compile warnings: deprecated readdir_r -> readdir; Wuninitialized few variables on make check