MB-11060: Parameterize build for x86/amd64 architectures
CBD-1366: Report errors and abort

Change-Id: I889908d53a23949971416f4b6129856426608c89
Reviewed-on: http://review.couchbase.org/41661
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>