guard cwd restore to win32-only (from "not android")

closes #2337

This just implements the #ifdef change mentioned by @arturoc in #2337. So:

    #ifndef TARGET_ANDROID -> #ifdef TARGET_WIN32

I'm not really sure how to fully test it, but I ran an ios app with some ofToDataPath() calls, and the file dialog example on OSX.