complete struct stat in POSIX API

Didn't expose all members of this struct, making it not very useful.