OpenBSD support added
improve cleanup