tools/bc: use autoreconf to fix build failure on macOS with recent Xcode versions