(Partially pointed out by clang warnings.)
Partially because I had parts of that lying around for quite a while.
@Itms it would be nice to have automated builds on some Clang/libc++ system, given that OS X has licensing issues with that we could try with FreeBSD (that might require us to merge a certain patch, but well).