Avoid Java 6 API.
Attempt to fix C code compilation with VisualCpp