Now I'm trying to build Calibre on CentOS 5.3. Dependency hell, you know

Is it possible to disable building of some parts that I do not need?
For example support for PDF (poppler, podofo?), CHM (libchm ?), webserver, and entire GUI - I only need a console converter