updated build for modern xcode