make headers autonomously includable and fix a few harmless clang warnings