Various code-polishings to make OmnitiOS happy.

Some of them are rather pedantic:  "NULL" vs "(char*)0" -- Really ?