fixes libpng dependency