Fix build on Windows when flex exists

A recently-added line in util/Makefile runs perl -i on the flex output,
but plain -i doesn't work on Windows.  Instead, use the backup-file
variant -i.orig: .orig rather than .bak because the former is already
in our .gitignore.