fix cmake
fix main.c
Merge pull request #9 from luvit/fixes/cmake_2

fix cmake on windows