[PATCH] use libunwind only when both header and lib available