Fix warnings and errors from clang.

Signed-off-by: Evan Nemerson <evan@coeus-group.com>
Fix warnings from icc.

Signed-off-by: Evan Nemerson <evan@coeus-group.com>