Worked around a bug in C++# in order to produce wrappers for the 64-bit libgd.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>