fix calibre build