Index: Makefile.in
===================================================================
--- Makefile.in	(revision 700)
+++ Makefile.in	(working copy)
@@ -148,7 +148,7 @@
 endif
 ifeq "$(hooks)" "osx"
 RIGGERD_SRC+=osx/wakelist.c
-LDNSLIBS+=-lIOkit /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
+LDNSLIBS+=-framework IOKit -framework CoreFoundation
 endif
 RIGGERD_OBJ=$(addprefix $(BUILD),$(RIGGERD_SRC:.c=.o)) $(COMPAT_OBJ)
 
Index: osx/RiggerStatusItem/RiggerStatusItem.xcodeproj/project.pbxproj
===================================================================
--- osx/RiggerStatusItem/RiggerStatusItem.xcodeproj/project.pbxproj	(revision 700)
+++ osx/RiggerStatusItem/RiggerStatusItem.xcodeproj/project.pbxproj	(working copy)
@@ -260,6 +260,8 @@
 				GCC_OPTIMIZATION_LEVEL = 0;
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 				GCC_PREFIX_HEADER = RiggerStatusItem_Prefix.pch;
+				HEADER_SEARCH_PATHS = /usr/local/opt/openssl/include;
+				LIBRARY_SEARCH_PATHS = /usr/local/opt/openssl/lib;
 				INFOPLIST_FILE = "RiggerStatusItem-Info.plist";
 				INSTALL_PATH = "$(HOME)/Applications";
 				PRODUCT_NAME = RiggerStatusItem;
@@ -274,6 +276,8 @@
 				GCC_MODEL_TUNING = G5;
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 				GCC_PREFIX_HEADER = RiggerStatusItem_Prefix.pch;
+				HEADER_SEARCH_PATHS = /usr/local/opt/openssl/include;
+				LIBRARY_SEARCH_PATHS = /usr/local/opt/openssl/lib;
 				INFOPLIST_FILE = "RiggerStatusItem-Info.plist";
 				INSTALL_PATH = "$(HOME)/Applications";
 				PRODUCT_NAME = RiggerStatusItem;
@@ -283,7 +287,7 @@
 		C01FCF4F08A954540054247B /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+				ARCHS = "$(ARCHS_STANDARD)";
 				GCC_C_LANGUAGE_STANDARD = gnu99;
 				GCC_OPTIMIZATION_LEVEL = 0;
 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -294,23 +298,24 @@
 					"-lssl",
 				);
 				PREBINDING = NO;
-				SDKROOT = macosx10.6;
+				SDKROOT = macosx;
 			};
 			name = Debug;
 		};
 		C01FCF5008A954540054247B /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+				ARCHS = "$(ARCHS_STANDARD)";
 				GCC_C_LANGUAGE_STANDARD = gnu99;
 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
 				GCC_WARN_UNUSED_VARIABLE = YES;
+				ONLY_ACTIVE_ARCH = YES;
 				OTHER_LDFLAGS = (
 					"-lcrypto",
 					"-lssl",
 				);
 				PREBINDING = NO;
-				SDKROOT = macosx10.6;
+				SDKROOT = macosx;
 			};
 			name = Release;
 		};
Index: osx/dnssec-trigger-osx.sh.in
===================================================================
--- osx/dnssec-trigger-osx.sh.in	(revision 700)
+++ osx/dnssec-trigger-osx.sh.in	(working copy)
@@ -37,5 +37,5 @@
 echo "$ifs $ips $ssid $bssid" > $tempfile
 
 logger "dnssec-trigger(osx) detected $ifs DNS $ips"
-0sbindir0/dnssec-trigger-control submit "$ips"
+@sbindir@/dnssec-trigger-control submit "$ips"
 exit 0
