Conservation of biodiversity in a changing climate