minor fixes for openbsd