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