Factor out platform-specific watcher dependencies