Quantlib merge

fixed unsigned int conversion (thanks to Peter Caspers)
fixed clang warnings