Remove dead code
Rewrite sampgdk_get_ret_addr and move it to utils
Cleanup