Lie algebroid cohomology as a derived functor