Allow Spike to build on NetBSD

Under NetBSD, dlopen() is in libc so no extra libs are needed.
autoreconf 65ba70071d11cc19b3dc85c047c5fea6d4d7bc0d
Merge branch 'netbsd-autoconf'

This contains some changes that fix the build on NetBSD.