Fix missing global variable static qualifiers