fix linux bug, error: ‘xxx’ undeclared