add proper install targets

* fix some cmake errors on my machine