fixed compile issue on Linux