Added support for compilation on Windows platform

But unix-systems may be broken. :-( Can't verify it.