Update configure to make it idempotent again and add MidnightBSD Signed-off-by: Laslo Hunhold <dev@frign.de>