Added undef directive to avoid compilation error on windows.
Fixed error compilations on windows.