fix cmake build system; fixes #274
Merge pull request #275 from saschazelzer/274-cmake-build-system-broken

fix cmake build system; fixes #274