Fix build error under windows

Error 45 error C2039: 'cerr' : is not a member of 'std'
Merge pull request #83 from HackFisher/patch-1

Fix build error under windows