fix make install non-empty DESTDIR

Symlinks were created even when make install was called with a
non-empty DESTDIR variable. Fixed by creating the symlinks in build
directory first and then install them using common install.
DESTDIR installation is needed for binary packages.
added LIB cmake option to configure lib directory

for multiarch distributions the lib directory needs to changed
from 'lib' to 'lib64'/'lib32'. Add an cmake option to do this.
make cmake_dir configure-able
Merge pull request #1137 from ottxor/master

improvements to create binary packages