Fixed AM_LDFLAGS so that it compiles on OpenBSD

According to the OpenBSD mailing list, they discourage -Wl,--no-undefined for cases like this. I can forward along the email if desired explaining the rationale.