First round of Linux build fixes.