fix minor typos
fix warnings
also include lchown and lchgrp