Varous linux fixes