C89 compat
fix dll export
enable php_stdiop_write for windows

yet it's unclear whether it'll be usable, but otherwise it breaks
compilation as some places depend on it