Update global variables for Clang based compilers
This update allows the code to be compiled with Clang based compilers. When global variables are being used with the Clang based compilers, they can only be declared in one source file and have to be "extern" to other source files.