Update configure

Make it can succefully be built under DragonFlyBSD