added suport for interfacing with global variables which are declared in native libraries