Fixed some linux issues.