Fix issues

- fix cpp support in all .h and .c files
- fix lprofM_pause_total_time null issue (core_profile.c)
- remove userdata in func call (lua50_profile.c)