fixed some miscellaneous compiler errors.