add some 'const' in the metrics logger
fix in s3.cc : now really using numRetries for curlpp runtime error