Fixed critical Linux bugs