Cleanup CLSCompliant and unused variable warnings.