Fixed most of the warnings in ofstd and oflog.

Compiled with extensive warning options except -Wtraditional and corrected
most of the problems.