initial work for ZTS build...

Quite a big one.

At least, it allow to build the extension.
Only minimal test run.