make the C declarations a proper extern C