fix build errors on read the docs