-library += -framework Foundation -framework CFNetwork
-library += -framework JavaScriptCore -framework WebCore
-library += -lsubstrate -liconv
+library += -framework Foundation
+console += -framework JavaScriptCore
+# XXX: do I just need WebCore?
+console += -framework WebKit
+library += -undefined dynamic_lookup
+library += -liconv
+flags += -I/usr/include/ffi
+apr_config := /usr/bin/apr-1-config
+flags += -arch i386 -arch x86_64 #-arch armv6