bugfix: missing link with libexecinfo
add scope guard support to ease RAII