Dynamically allocating pointers for system vars and global functions.