Fix translation issue and compile issue on Windows.