Add unified memory related operatation functions

Only take effect in DEBUG mode, need to do:

export GUAVA_DEBUG=1

to enable the DEBUG compile

If the building is not under DEBUG mode, original c memory
functions will be defined as macros