OK I found the problem: compiling it with Debug doesn't works, it must be compiled as release to work, at least on my PC with Laz 1.6.
Edit: I don't know what was wrong, now compiling with Debug works fine too, that was a problem with something else.