fix modal view display error and social framework weak link in pre iOS 6