fix: build if using clang
patch from Debian thanks to Arthur Marble <arthur@info9.net>