fix Undeclared selector 'setThreadPriority' issue