fix CMAKE build
Merge pull request #70 from cpubug/master

fix CMAKE build
rolled back
fixed creash