Our NIF/port driver sources should really only ever be C++.
Corrected C++ errors, since C++ seems to be more stringent about types than C.