make base spec and front spec separately 

And build leptonica with libpng for PNG I/O.