re PR c/5059 (Compiling s/w containing the use of DIR.H fails on other stat-calls)