debuggercommon: Fix some building errors on Windows.
(cherry picked from commit 0ed5d401932dd601abcef09ae726fee34130f008)