add stat prototypes which Linux did not need