Refactor ust-instrument-dyninst.cpp and make it work