Quantlib merge

fixed extrapolation problem for VC9