commit from QuantLib master branch