Fix build with libpng15

Updated PR https://github.com/mono/libgdiplus/pull/3 addressing the comments from Andrew Ruder