Fix a compilation error.
Fixed some compiler warnings.