Fixed #includes in synopsis to declare the prototype in the synopsis. Fixed stale types in description of struct dirent.