make base spec and front spec separately 

And build leptonica with libpng for PNG I/O.

Then we are able to unit test frontend modules.