Fixed bug preventing use in multiple translation units
Fixed bug preventing use in multiple translation units

Using `static` linkage on global variables redefined
the vars in each translation unit.

Fixed by moving static vars inside `inline` accessor
functions.

gmbeard/gmbtest