adjustments for FreeBSD/Clang