This commit provides Windows support

These changes are based on gcc-mingw-w64-i686 (4.6.3-14+8) on Debian Wheezy.
We also use pthreads_win32 project (http://www.sourceware.org/pthreads-win32/)
for pthread support on windows. Makefile can create both isolated binary and
dll for linking on windows.