On darwin we need the correct prefix during the buildPhase, otherwise the dynamic libraries have an incorrect install_name.