added some linux fixes for the client