Makefile: compatibility with openbsd

This was first reported Dirk-Wilhelm Peters <peters@schwertfisch.de>
and this patch was suggested by Carsten Kunze <carsten.kunze@arcor.de>.