Include cstdlib for std::malloc.