More Linux-friendlinesses and warning fixes. (/W4 compliant)