updated for xcode 5, compiles as needed for arm64