fixed some java compilation issues