Fix epub build errors