fix #3522 to build on windows (added #define for realPath)
===VersionHistory:None===