made nvm_alloc_heap_pages static