work around boost bcp bugs