Fix defined for static compile.

See https://bugs.php.net/bug.php?id=63086