Dynamically allocate global pointers