Compilation fixes for scan_exiv2