fix build for OpenBSD (bug #5019)