Fix for old boost (<= 1.46), this  version is used at travis-ci