os x framework error fix