Fixing broken extern C