configure: expose -Bsymbolic to makefiles
avformat: avoid genmf
avcodec: move more build logic to Makefile