make core_foundation loading work