'ad-advised-definition-p' error in new mac pro, move funs define before plugin to workaround