autoconf test for deprecated readdir_r