Fixes for warnings when building on CentOS

Fixes for various GCC 4.4 warnings when building on CentOS 6.5