improvements to create binary packages 

3 fixes:
- make `make install DESTDIR=XXX` work again
- make `lib` directory configure-able
- make `cmake_dir` configure-able