add cmake install settings, macro variables and use it

- tweak install setting
- add PREFIX/lib as default library path
- use compiler used to build Dachs to link objects for fallback