Perhaps you can port the following delphi library to Lazarus: http://chsdet.sourceforge.net/
@Getmem
Thats not difficult..took 3 minutes (second time... first effort 30 minutes)
Steps:
Unpack zip file in some directory.
Go to that directory.
open the chsd_dll_intf.pas file. Change stdcall to {$ifdef windows}stdcall{$else}cdecl{$endif} (search and replace)
change to the src directory.
open the chsdet.dpr file in src. comment out the *.res
open a terminal window (I compiled for linux) in the src directory.
Compile from the command fpc -Mdelphi -Fu./mbclass:./sbseq chsdet.dpr
That gave me libchsdet.so
Job done

No dependencies on windows.
Note this has to be done from the commandline with -Mdelphi.
If you want to compile from Lazarus you have to add {$ifdef fpc}{$mode delphi}{$endif} to every single unit, but that is not necessary to build the library.
If it is tested by y'all and useful, maybe we can include it as a package. It is cross-platform.
Next job for me: look at a possible ICU-c58 interface. That's more or less the standard.
[EDIT]
I forgot that chsdIntf also needs the conversion from stdcall to {$ifdef windows}stdcall{$else}cdecl{$endif}