quantlib: boost 1.57 compatibility

Patch backported from quantlib master.