Detect architecture.
builds on mavericks with latest xcode.