Fixed cross platform compile issue.