Fix crash due to missing weak support