fix sapi/phpdbg/config.w32
dll export APIs needed by phpdbg
unix sockets aren't available on windows
use portable strndup implementation
export output globals

needed by phpdbg
fix output globals importing