+#if TARGET_OS_EMBEDDED && !TARGET_OS_WATCH && !__LP64__
+ _vminterpose_init();
+#endif
+
+ _libtrace_init(); // must be initialized after dispatch
+
+#if !TARGET_OS_IPHONE
+ /* <rdar://problem/22139800> - Preserve the old behavior of apple[] for
+ * programs that haven't linked against newer SDK.
+ */
+#define APPLE0_PREFIX "executable_path="
+ if (dyld_get_program_sdk_version() < DYLD_MACOSX_VERSION_10_11){
+ if (strncmp(apple[0], APPLE0_PREFIX, strlen(APPLE0_PREFIX)) == 0){
+ apple[0] = apple[0] + strlen(APPLE0_PREFIX);
+ }
+ }
+#endif