const fold OS versions in make_ext.pl

goto-LABEL is extremely slow in P5, so use a scalar to cache the result of
file not existing.