ported main program to gcc, need to build static libraries for libpng and zlib