Fix compile issue on modern linux.