fix readdir; from syl
Merge branch 'master' of github.com:jasperla/openbsd-wip