Do not throw exceptions for extern C functions