Fix crash when using __if_exists in C mode