Fix archive/changes_test.go on FreeBSD

These two commits are required for fixing the test.