libstd: make fileinput tests pass.