[*] fix linux build (malloc, free)