Some fixes for building docs on RTD.