Fix several undef warnings.