The unit TPLB3.SHA2.pas contains a lot of compiler flags.
In particular {$APPTYPE GUI} can lead to issues when linking the unit in a console application.
Please remove the compile flag, as our previous investigation have shown that your library also works without {$APPTYPE GUI}.