Bug 711795 - execinfo.h functions need -lexecinfo on NetBSD

Allow building on NetBSD -current where execinfo.h is present but
backtrace() and backtrace_symbols() are in -lexecinfo.

(cherry picked from commit 4ac3967a5dbb5eb70d9f6496c1c91b838fbed7ad)