Fix compile issue on some systems