added cmake. need to test on windows and add libs on linux