fix build on openbsd