removed unneeded extern "C" blocks