Mods to unit test infrastructure to handle compiling without linking.
All global var tests now pass.