fix compile error [mac]