add cmake support.

Fixes #4