Fixes for "warning: value computed is not used" errors

Required for build on CentOS 5