Some cross-platform code cleanups.

Fixes for MinGW and clang with HS_DEBUGGING enabled.
Heh, I expect the old code here checked that ```0 == plSharedMesh::Index``` -- that's a fail