From the B-Toda to the BKP hierarchy