build: Fix warnings reported by 'clang'

This commit fixes warnings reported by 'clang'. One of the warnings (in
Google Test Framework) hasn't been fixed, since we don't want to patch
external library code.

Change-Id: Ie824ac30f3c40fb16862d0689fe432f6f5f8fbc8