Fixed various minor compiler warnings.