t/C-COMPILED/template.pl: use optim-specific filenames

also fix invalid TODO: SKIP: { for 5.8