updated version of boost shared ptr debugging patch