Various Linux fixes.