fix: mac osx port: need extern int in a c file (D, not C code part)
chg: add optional warning for ring variables names used in procedures