Fix runpath and copy frameworks so that unit tests can find everything they need.