Add VmAlloc() and VmFree() to BaseLayerAPI, currently they are simply wrapper of malloc() and free().