Fix building with libboost versions >=1.55