fixed finding a 64bit architecture on NetBSD/OpenBSD and FreeBSD

fixed finding a 64bit architecture on NetBSD/OpenBSD and FreeBSD