Linux warnings and some fixes.