Fixes (some) lack of debug functionality on non-Windows platforms.