SMB2 support

I need to access a SMB host which requires SMB version 2 and I can access by the command “smbclient -m SMB2”.

But the latest KODI using SMB protocol by default.And open error.
I see KODI code that open SMB2 file using smbc_open() function which called from libsmbclient in samba-gplv3(tools/depends/target/samba-gplv3) .
How could I access the host using SMB version 2?
Could the latest libsmbclient support the SMB2?
If support ,could I exchange the libsmbclient by the latest libsmbclient that supported the SMB2?