Fix compilation error on Windows (don't use statics in inline functions)