re-add idempotent c library loading to native