Fix dependeces between build-{ep} targets