Embed frameworks in the demo and set LD_RUNPATH_SEARCH_PATHS properly.