During integration of hyphen in the NHunspell project (hunspell for .NET) i compile hyphen.c with a c++ compiler. There are a view changes to make this integration more easy. For C++ it is necessary to cast the hnj_malloc() results from void * to the correct type and to rename a local variable "new", because new is a kewyword in C++. This changes affect nothing else, so it should be no problem to integrate them.
I have attached a patch for this changes.