Will this not also work if you just put the functions themselves in the extern "C" block?