more unix warnings fixes