fix ZTS build

this fixes the issue described in pull request #4