Fix boost intrusive_ptr testcase compilation with latest boost/gcc
Fixes for warnings issued by clang
Warning fix for ccache-swig tests

clang deletes the output 'file' whereas gcc does not if the output
'file' is actually a directory.
Don't use obsolete -scm option in own makefiles