Call function instead of method in global flag counting.

Allows lib to work in older versions of Go.  Tests fail in older versions, but not sure how important that is too fix.