Just fix some compile issue on Mac