install libpng before freetype