cmake/configure: Allow cross compilation

Change-Id: Ib8cfc83bca6e08391c9d216b498b9416a464e602
Reviewed-on: http://review.couchbase.org/33327
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>