make code compile with older versions of boost, make sure joint bounds are stored in a single location