Works with older versions of boost