The S3 build system tries to build the winbind_krb5_locator.so library even if configured --without-winbind. Linking the library fails with funny talloc errors if winbind has not been built.
As a workaround, not specifying --without-winbind allows the build to complete.