Add a C version of gen_bf.py
Hook gen_bf.c to the build
remove gen_bf.py