Correct extern "C" declarations