Fix Linux build issues.
Work around a VS bug causing silent memory corruption.  I swear...