fix conflicts between boost and c++11.