Move all definitions of external dependencies into configure instead of