THRIFT-1814 Minor D library fixes
fix a few tiny issues in the D library so that it compiles using the upcoming 2.061 DMD release

Patch: David Nadlinger
THRIFT-1594 Java test clients should have a return codes that reflect whether it succeeds or not.
Patch: Kamil Salas and  Roger Meier