fixed undefined references
fixed libpng-warning