fix compile error
remove unused things in mac compile