Makes CMake working both for *nix and ***dows

Issue: #46