Use darwin-specific dirent struct for OS X

Fixes #102