Fixed some linux issues