Fix compilation errors when PHP is built with `--enable-maintainer-zts`.

This should fix #5.
Merge pull request #7 from whatthejeff/zts-fix

Fix compilation errors when PHP is built with `--enable-maintainer-zts`.