Fix Clang warnings / errors, fixes #8