add building of dynamic libbam.so