Made codes compatible with MSVC and Updated build.gradle

- Made codes compatible with MSVC (issue #1)
- Updated build.gradle to add maven support (issue #2)
- Fixed platforms in build.gradle