Fix build settings to work with Xcode5 and all architectures.