Fix compile error for mac project