I have added ifdef(UNIX) option to cmake.