updated version of boost shared ptr debugging patch
fix up button selection operation so that fade drags work again