Fix build failure on rtd