Changes required for fetch to work on FreeBSD.

Still preceeded by .de.byte.breaker.