a patch for compatible with windows

Hi Pili,
I am honored to pull request a patch for this excellent repo named snsapi. What I have done to this repo is just adding some codes to  enhance its compatibility with windows os.
Best wishes!
hugochan