fix builds with ExtUtils::ParseXS

A recent change to ExtUtils::ParseXS broke builds: add
    PERL_UNUSED_VAR(file)
only when the 'file' var is present.