I just figured out something now,
it seems the code "SynTaskDialog.pas" is not 64bit safe in FPC.
if you build for 32bit it works fine, but for 64bits, we get errors.
it seems you are using the 64bit version of Lazarus/FPC that is why it by default compiles a 64bit executable for you?