Use lua C functions instead of macros on cjson lib