Fix some unix specific problems.