Update javacx.c

MInor corrections to avoid compiler warnings and add some extra debug version reports.