main: fix compiler warnings.