Handled various compiler warnings.