add cairo, libpng and jpeg to build