Add cmake build support

If pull ok i can squash changes.