all: fixes resulting from building with clang