fix static linking of PDF and image modules