prepare config.w32
fixed C89 compat
use a portable strndup implementation