added freetype libpng support