Fix compilation error for jdbc4