Fixing hibernate build