Adapted for Geode build
Unified BtSyncAgent and BtSyncApi