Aspects of self-dual Yang-Mills and self-dual gravity