Fix boost intrusive_ptr testcase compilation with latest boost/gcc
Fixes for warnings issued by clang