Correcting some bugs on OpenBSD