fix compilation warnings for clang 3.4