core, w32: Add hack to translate diag logger-fd