Some cross-platform code cleanups.

Fixes for MinGW and clang with HS_DEBUGGING enabled.
Because it doesn't compile in MinGW otherwise... I agree it shouldn't be needed, but it seems to be used inconsistently in this file. Maybe it has something to do with the ASSERT?