move problematic darwin specific import inside darwin if/else branch
Merge pull request #2 from megies/move_darwin_import

move problematic darwin specific import inside darwin if/else branch