Fix some warnings, better support what passes for unix these days.