Add win32 porting

In this pull request, I have did some changes to support building on win32, with the c codes generated by zephir on Linux.

No tests are newly added.