Fixed some OpenBSD issues and have_gnu_grep function