Backport  #9576

warn and continue gracefully if bcmath is not installed

make tests deal with missing bcmath