Selfing, adaptation and background selection in finite populations