Mac-specific: Implement scanning under Mac OS X (issue #129)