Created attachment 268595 [details] build.log those type conversions should be a fairly simple fix, just check the libpng version and use png_byte* in 1.5 and char* otherwise
Fixed in main tree. Thanks for report.