Clang: enable -Werror and fix code
No need for strlen here
Merge pull request #505 from LebedevRI/clang-werror

Clang: enable -Werror and fix code