Make compilation work with GCC and with older versions of Boost (hopefully).