fixed some compiler warnings.