Linux fixes and small changes