Windows compatibility

* Updated makefiles and code syntax for compatibility with Windows