Fix extern "C"