Extern C.. Damn cplusplus is mad