Remove extern/replace.h

This was really only necessary for using the internal talloc library,
but it turns out that wasn't portable at all.  This fixes the problem
by manually defining the few cases where talloc actually used that
auto-generated header, which was causing troubles for people on
non-Linux systems.