[hooks] Implement wrapper for readdir and readdir_r

struct dirent differs between bionic and glibc, and rewinddir needs
hooking.

Signed-off-by: Thomas Perl <thomas.perl@jolla.com>
Merge pull request #3 from mer-hybris/struct-dirent-fix

[hooks] Implement wrapper for readdir and readdir_r