Nothing wrong with the demo code, since it works both in Delphi and FPC, but: I suppose he knew that and tried the stand-alone feature. That requires 3.2.0.
What is funny is that you should have written something like my {$ifdef} and I should have written something like your {$ifdef}
Anyway, what about adding both the examples to the wiki, with the proper {$ifdef} 's ?