Fix the last bug and finally support OpenBSD