Added CMake build files and windows comatibility