configure: error: could not detect a 64-bit integer type

NetBSD dagonet.omniscient.local 6.1.3 NetBSD 6.1.3 (GENERIC_HZ) #1: Sat Mar 1 19:18:46 EST 2014 met@dagonet.omniscient.local:/data/netbsd/obj/usr/src/sys/arch/i386/compile/GENERIC_HZ i386

Failure due to test programs have "Shared object "libXXX.so.X" not found"

Adding -Wl,-rpath,/usr/pkg/lib to LDFLAGS for NetBSD